//
//  GoOutSpecialTopicAllCell.m
//  ArtOfLiving
//
//  Created by 刘虎 on 16/5/1.
//  Copyright © 2016年 刘虎. All rights reserved.
//

#import "GoOutSpecialTopicAllCell.h"
#import "GoOutMainheadViewModel.h"

@interface GoOutSpecialTopicAllCell ()

@property (weak, nonatomic) IBOutlet UIImageView *photoImageView;

@end

@implementation GoOutSpecialTopicAllCell

- (void)setCellWithModel:(id)model {
    
    GoOutMainheadViewModel *headViewModel = model;
    SDWebImageOptions options = SDWebImageRetryFailed | SDWebImageLowPriority;
    [self.photoImageView sd_setImageWithURL:[NSURL URLWithString:headViewModel.photo] placeholderImage:[UIImage imageNamed:@"travelPlaceholder.png"] options:options completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        
        [UIView animateWithDuration:3.0 animations:^{
            
            CGRect frame = self.imageView.frame;
            frame.size.width += 40;
            frame.size.height += 40;
            self.imageView.frame = frame;
            self.imageView.center = self.center;
        }];
    }];
}

- (void)awakeFromNib {
    
    [super awakeFromNib];
}

@end
